package yang.myandroiddemo;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import java.nio.Buffer;

import butterknife.BindView;
import butterknife.BindViews;
import butterknife.ButterKnife;
import yang.myandroiddemo.one.ActivityOne;


public class MainActivity extends AppCompatActivity implements View.OnClickListener {


    @BindView(R.id.mainActivity_tv1)
    TextView tv1;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        //导入 注解
        ButterKnife.bind(this);
        tv1.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            //Android 高仿腾讯新闻频道定制页面
            case R.id.mainActivity_tv1:
                startActivity(new Intent(MainActivity.this, ActivityOne.class));
                break;
            //RecyclerView 使用ItemDecoration 巧妙实现吸附效果
            case R.id.mainActivity_tv2:


                break;

            case R.id.mainActivity_tv3:


                break;

            case R.id.mainActivity_tv4:


                break;

            case R.id.mainActivity_tv5:


                break;

            case R.id.mainActivity_tv6:


                break;

            case R.id.mainActivity_tv7:


                break;

            case R.id.mainActivity_tv8:


                break;

            case R.id.mainActivity_tv9:


                break;

            case R.id.mainActivity_tv10:


                break;

            case R.id.mainActivity_tv11:


                break;

            case R.id.mainActivity_tv12:


                break;

            case R.id.mainActivity_tv13:


                break;

            case R.id.mainActivity_tv14:


                break;

            case R.id.mainActivity_tv15:


                break;

            case R.id.mainActivity_tv16:


                break;

            case R.id.mainActivity_tv17:


                break;

            case R.id.mainActivity_tv18:


                break;

            case R.id.mainActivity_tv19:


                break;

            case R.id.mainActivity_tv20:


                break;
        }
    }
}
